<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class CreateGuildHostTagTable extends Migration
{
    protected $connection = 'guild';

    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('guild_host_tag', function (Blueprint $table) {
            $table->increments('id');
            $table->string('tag_name', 20)->default('')->comment('标签名');
            $table->unsignedSmallInteger('tag_type')->default(1)->comment('标签类型');
            $table->timestamps();
            $table->tinyInteger('flag')->default(1)->comment('记录状态');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('guild_host_tag', function (Blueprint $table) {
            //
        });
    }
}
